//
//  ViewController.m
//  myLabelAndmyImageView
//
//  Created by 苗钧豪 on 16/7/18.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "ViewController.h"
#import "myLabel.h"
#import "myImageView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    myLabel *label = [[myLabel alloc]initWithFrame:CGRectMake(100, 100, 100, 50) text:@"你来打我呀"];
    label.userInteractionEnabled = YES;
    [self.view addSubview:label];
    
    myImageView *imgview = [[myImageView alloc]initWithFrame:CGRectMake(100, 200, 100, 100) image:[UIImage imageNamed:@"haochou.jpg"]];
    imgview.userInteractionEnabled = YES;
    [self.view addSubview:imgview];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
